<?php

namespace app\common\validate;

use think\Validate;

class Forum extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'page|页码'             => 'require',
        'pageCount|页面数量'    => 'require',
        'detailId|详情分类标识' => 'require',
        'title|帖子标题'        => 'require',
        'content|帖子内容'      => 'require',
        'images|帖子资源'       => '',
    ];
    /**
     * 提示消息
     */
    protected $message = [
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'postTalk'     => ['detailId', 'title', 'content'],
        'getPageList'  => ['detailId', 'page', 'pageCount'],
        'categoryList' => [""],
    ];
}